package com.yxw.live_vod_backend_boot.service;
//import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import com.yxw.yxnet_cd_center.common.utils.BaseResult;
import com.yxw.live_vod_backend_boot.entity.YxLiveAgreementEntity;
import com.yxw.live_vod_backend_boot.dto.YxLiveAgreementDTO;
import com.yxw.live_vod_backend_boot.dto.YxLiveAgreementAddDTO;    
import com.yxw.live_vod_backend_boot.dto.YxLiveAgreementQueryDTO;    
    
/*** 
*@author Jiaxu.Huang
*@date 2023/12/10 11:46:16
*@update 2023/12/10 11:46:16
**/
//public interface IYxLiveAgreementService  extends IService<YxLiveAgreementDTO>{
public interface IYxLiveAgreementService  
{
    /*** 
    * 增加
    * @param oYxLiveAgreementDTO
    * @return BaseResult
    **/
    public BaseResult insertYxLiveAgreement(YxLiveAgreementAddDTO oYxLiveAgreementAddDTO);
    /*** 
    * 修改
    * @param oYxLiveAgreementDTO
    * @return BaseResult
    **/
    public BaseResult updateYxLiveAgreementById(YxLiveAgreementDTO oYxLiveAgreementDTO);
    /*** 
    * 删除
    * @param id
    * @return BaseResult
    **/
    public BaseResult deleteYxLiveAgreementById(Integer id);
    /*** 
    * 根据id查找
    * @param id
    * @return YxLiveAgreementEntity
    **/
    public YxLiveAgreementEntity selectYxLiveAgreementById(Integer id);
    /*** 
    * 自定义查询
    * @param oYxLiveAgreementQueryDTO
    * @return List<YxLiveAgreementEntity>
    **/
    public List<YxLiveAgreementEntity> selectYxLiveAgreementList(YxLiveAgreementQueryDTO oYxLiveAgreementQueryDTO);
    /*** 
    * 自定义统计
    * @param oYxLiveAgreementQueryDTO
    * @return Integer
    **/
    public Integer selectYxLiveAgreementCount(YxLiveAgreementQueryDTO oYxLiveAgreementQueryDTO);
    /*** 
    * 自定义分页查询
    * @param currentPage 当前页
    * @param pageSize 分页大小
    * @param oYxLiveAgreementQueryDTO
    * @return Page
    **/
    public Page selectYxLiveAgreementPage(int currentPage,int pageSize,YxLiveAgreementQueryDTO oYxLiveAgreementQueryDTO);
    /*** 
    * 获取正在生效的主播协议
    * @return List<YxLiveAgreementEntity>
    **/
    public BaseResult selectActiveAgreement();    
}
    

